]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnails: Really fix DND creating new workspaces
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 22 Feb 2014 23:10:50 +0000 (00:10 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 22 Feb 2014 23:29:29 +0000 (00:29 +0100)
The same problem spotted in commit 89a2dc71fc1ed is present in
some more places, fix those as well.

https://bugzilla.gnome.org/show_bug.cgi?id=724686

js/ui/workspaceThumbnail.js

index 913ed2329b7ade86cfa62e03496b3c4163ccce02..25469e34173823aa2af89caf30f60fd1743007fb 100644 (file)
@@ -812,9 +812,9 @@ const ThumbnailsBox = new Lang.Class({
                     return false;
 
                 if (isWindow)
-                    return window.get_workspace() >= newWorkspaceIndex && winActor != source;
+                    return window.get_workspace().index() >= newWorkspaceIndex && winActor != source;
                 else
-                    return window.get_workspace() >= newWorkspaceIndex;
+                    return window.get_workspace().index() >= newWorkspaceIndex;
             });
 
             this._spliceIndex = newWorkspaceIndex;